//
//  BackgoundNotificaitonManager.h
//  OCTest
//
//  Created by lichenxi on 2022/1/20.
//

#ifndef BackgoundNotificaitonManager_h
#define BackgoundNotificaitonManager_h


#endif /* BackgoundNotificaitonManager_h */
#import "UserNotifications/UserNotifications.h"

@interface BackgoundNotificaitonManager : NSObject
{
    BOOL isForeground;
}
+(instancetype)sharedInstance;
+(void) RequestAuthorization;

-(void) SendNotification:(char*)uniqueId :(char*)title :(char*)body :(int)channel;
-(void) CancelNotification:(char*)uniqueId;
-(void) OnForeground:(BOOL)foreground;

@end

